/*
 * Copyright (c) 2025 EasyAdmin
 * All rights reserved.
 *
 * This file is part of the [EasAdmin] project.
 * Unauthorized copying of this file, via any medium, is strictly prohibited.
 * Proprietary and confidential.
 *
 * Author: EasyAdmin ( 1073602@qq.com )
 * Website: https://www.xhxiao.com
 */
package com.easy.module.system.service;

import com.easy.framework.database.service.IService;
import com.easy.module.system.entity.SysAppVersion;
import com.easy.module.system.query.SysAppVersionQuery;

/**
 * 应用版本 Service接口
 *
 * @author EasyAdmin ( 1073602@qq.com )
 * @date 2025-08-20
 */
public interface ISysAppVersionService extends IService<SysAppVersion, SysAppVersionQuery> {

    /**
     * 新增应用版本
     *
     * @param dto 应用版本
     * @return 结果
     */
    Boolean add(SysAppVersion dto);

    /**
     * 修改应用版本
     *
     * @param dto 应用版本
     * @return 结果
     */
    Boolean update(SysAppVersion dto);

    /**
     * 获取最新应用版本
     *
     * @param query
     * @return
     */
    SysAppVersion getNewestVersion(SysAppVersionQuery query);

    /**
     * 获取应用版本
     * @param query
     * @return
     */
    SysAppVersion getVersionInfo(SysAppVersionQuery query);
}